package gui_programming;

import javax.swing.*;

public class MyFrame {
	public static void main(String[] args) {
		JFrame frame = new JFrame("MyFrame"); // Create a frame
		frame.setSize(400, 300); // Set the frame size(pixel)
		frame.setLocationRelativeTo(null); // Centers the frame on the screen
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true); // Display the frame
	}
}



